/*
 * 版权所有 (C) 2015 知启蒙(ZHIQIM) 保留所有权利。[遇见知启蒙，邂逅框架梦]
 * 
 * https://zhiqim.org/project/zhiqim_components/zhiqim_admin.htm
 *
 * Zhiqim Admin is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *          http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */
package org.zhiqim.lottery.dbo;

import java.io.Serializable;

import org.zhiqim.kernel.annotation.AnAlias;
import org.zhiqim.kernel.annotation.AnNew;
import org.zhiqim.kernel.json.Jsons;
import org.zhiqim.orm.annotation.*;

/**
 * 抽奖用户表 对应表《LOTTERY_USER》
 */
@AnAlias("LotteryUser")
@AnNew
@AnTable(table="LOTTERY_USER", key="USER_ID", type="InnoDB")
public class LotteryUser implements Serializable
{
    private static final long serialVersionUID = 1L;

    @AnTableField(column="LOTTERY_ID", type="long", notNull=true)    private long lotteryId;    //1.抽奖编号
    @AnTableField(column="USER_ID", type="long", notNull=true)    private long userId;    //2.抽奖用户编号
    @AnTableField(column="USER_NAME", type="string,32", notNull=true)    private String userName;    //3.抽奖名称，如手机号，头像等
    @AnTableField(column="USER_TYPE", type="byte", notNull=true)    private int userType;    //4.抽奖类型，0：表示无效用户，1：表示有效用户，2：表示专席用户
    @AnTableField(column="USER_LUCK", type="byte", notNull=true)    private int userLuck;    //5.中奖级别，0：表示未中奖，1：表示在第一次中奖，以此类推

    public String toString()
    {
        return Jsons.toString(this);
    }

    public long getLotteryId()
    {
        return lotteryId;
    }

    public void setLotteryId(long lotteryId)
    {
        this.lotteryId = lotteryId;
    }

    public long getUserId()
    {
        return userId;
    }

    public void setUserId(long userId)
    {
        this.userId = userId;
    }

    public String getUserName()
    {
        return userName;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public int getUserType()
    {
        return userType;
    }

    public void setUserType(int userType)
    {
        this.userType = userType;
    }

    public int getUserLuck()
    {
        return userLuck;
    }

    public void setUserLuck(int userLuck)
    {
        this.userLuck = userLuck;
    }

}
